package com.bigegg.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bigegg.employee.mapper.ActivityBoothStaffMapper;
import com.bigegg.employee.domain.ActivityBoothStaff;
import com.bigegg.employee.service.IActivityBoothStaffService;

/**
 * 招聘会展位工作人员Service业务层处理
 * 
 * @author sun
 * @date 2022-08-15
 */
@Service
public class ActivityBoothStaffServiceImpl implements IActivityBoothStaffService 
{
    @Autowired
    private ActivityBoothStaffMapper activityBoothStaffMapper;

    /**
     * 查询招聘会展位工作人员
     * 
     * @param id 招聘会展位工作人员主键
     * @return 招聘会展位工作人员
     */
    @Override
    public ActivityBoothStaff selectActivityBoothStaffById(Long id)
    {
        return activityBoothStaffMapper.selectActivityBoothStaffById(id);
    }

    /**
     * 查询招聘会展位工作人员列表
     * 
     * @param activityBoothStaff 招聘会展位工作人员
     * @return 招聘会展位工作人员
     */
    @Override
    public List<ActivityBoothStaff> selectActivityBoothStaffList(ActivityBoothStaff activityBoothStaff)
    {
        return activityBoothStaffMapper.selectActivityBoothStaffList(activityBoothStaff);
    }

    /**
     * 新增招聘会展位工作人员
     * 
     * @param activityBoothStaff 招聘会展位工作人员
     * @return 结果
     */
    @Override
    public int insertActivityBoothStaff(ActivityBoothStaff activityBoothStaff)
    {
        return activityBoothStaffMapper.insertActivityBoothStaff(activityBoothStaff);
    }

    /**
     * 修改招聘会展位工作人员
     * 
     * @param activityBoothStaff 招聘会展位工作人员
     * @return 结果
     */
    @Override
    public int updateActivityBoothStaff(ActivityBoothStaff activityBoothStaff)
    {
        return activityBoothStaffMapper.updateActivityBoothStaff(activityBoothStaff);
    }

    /**
     * 批量删除招聘会展位工作人员
     * 
     * @param ids 需要删除的招聘会展位工作人员主键
     * @return 结果
     */
    @Override
    public int deleteActivityBoothStaffByIds(Long[] ids)
    {
        return activityBoothStaffMapper.deleteActivityBoothStaffByIds(ids);
    }

    /**
     * 删除招聘会展位工作人员信息
     * 
     * @param id 招聘会展位工作人员主键
     * @return 结果
     */
    @Override
    public int deleteActivityBoothStaffById(Long id)
    {
        return activityBoothStaffMapper.deleteActivityBoothStaffById(id);
    }
}
